package com.eazy.lkv2.core.spring.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class SystemListener implements ServletContextListener {

	private ServletContext context = null;
	
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		this.context = sce.getServletContext();
		
		context.setAttribute("lkv2.0", "this is my lkv2.0");
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		this.context = null;
	}

}
